home *** CD-ROM | disk | FTP | other *** search
- global gColor, glineoffset, gkeywordtext, glastline, gSelLine
-
- on exitFrame
- go(the frame)
- end
-
- on idle
- repeat while rollOver(37)
- if mouseDown() then
- exit
- end if
- if glastline < 25 then
- set mouseloc to (mouseV() - 95) / 12
- if (mouseloc > 0) and (mouseloc <= glastline) then
- set the visible of sprite 29 to 1
- set the locV of sprite 29 to (mouseloc * 12) + 95
- updateStage()
- else
- exit repeat
- end if
- next repeat
- end if
- set mouseloc to (mouseV() - 95) / 12
- if (mouseloc > 1) and (mouseloc < 24) then
- set the visible of sprite 29 to 1
- set the locV of sprite 29 to (mouseloc * 12) + 95
- updateStage()
- next repeat
- end if
- if mouseloc = 1 then
- set the visible of sprite 29 to 1
- set the locV of sprite 29 to 107
- updateStage()
- if glineoffset = 1 then
- if glastline = 25 then
- set the visible of sprite 30 to 0
- set the visible of sprite 31 to 1
- put EMPTY into line 24 of field 34
- delete line 23 of field 34
- put line 1 to 2 of gkeywordtext into line 1 of field 34
- else
- set the visible of sprite 30 to 0
- delete line 23 of field 34
- put line 1 to 2 of gkeywordtext into line 1 of field 34
- end if
- if gSelLine = 1 then
- set the foreColor of line 1 of cast 34 to getAt(gColor, 5)
- else
- if gSelLine = 2 then
- set the foreColor of line 2 of cast 34 to getAt(gColor, 5)
- end if
- end if
- set glineoffset to 0
- else
- if glineoffset > 1 then
- if (glineoffset + 24) = glastline then
- set the visible of sprite 31 to 1
- put EMPTY into line 24 of field 34
- delete line 23 of field 34
- put RETURN & line glineoffset + 1 of gkeywordtext after line 1 of field 34
- else
- delete line 23 of field 34
- put RETURN & line glineoffset + 1 of gkeywordtext after line 1 of field 34
- end if
- if (glineoffset + 1) = gSelLine then
- set the foreColor of line 2 of cast 34 to getAt(gColor, 5)
- end if
- set glineoffset to glineoffset - 1
- end if
- end if
- next repeat
- end if
- if mouseloc = 24 then
- set the visible of sprite 29 to 1
- set the locV of sprite 29 to 383
- updateStage()
- if (glineoffset + 25) = glastline then
- if glineoffset = 0 then
- set the visible of sprite 30 to 1
- set the visible of sprite 31 to 0
- put EMPTY into line 1 of field 34
- delete line 2 of field 34
- put line 24 to 25 of gkeywordtext into line 23 of field 34
- else
- set the visible of sprite 31 to 0
- delete line 2 of field 34
- put line glastline - 1 to glastline of gkeywordtext into line 23 of field 34
- end if
- if gSelLine = (glastline - 1) then
- set the foreColor of line 23 of cast 34 to getAt(gColor, 5)
- else
- if gSelLine = glastline then
- set the foreColor of line 24 of cast 34 to getAt(gColor, 5)
- end if
- end if
- set glineoffset to glineoffset + 1
- updateStage()
- next repeat
- end if
- if (glineoffset + 25) < glastline then
- if glineoffset = 0 then
- set the visible of sprite 30 to 1
- put EMPTY into line 1 of field 34
- delete line 2 of field 34
- put line 24 of gkeywordtext & RETURN before line 23 of field 34
- else
- delete line 2 of field 34
- put line glineoffset + 24 of gkeywordtext & RETURN before line 23 of field 34
- end if
- if gSelLine = (glineoffset + 24) then
- set the foreColor of line 23 of cast 34 to getAt(gColor, 5)
- end if
- set glineoffset to glineoffset + 1
- updateStage()
- end if
- end if
- end repeat
- set the visible of sprite 29 to 0
- updateStage()
- dontPassEvent()
- end
-